Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Call mmap through a C helper #96

Closed

Conversation

cjwatson
Copy link

@cjwatson cjwatson commented May 9, 2015

This fixes problems with the type of the offset argument on some
architectures, and makes it possible to build with e.g.
-D_FILE_OFFSET_BITS=64 (hsc2hs doesn't handle the conditional tricks in
<sys/mman.h> very well).

Fixes #95.

This fixes problems with the type of the offset argument on some
architectures, and makes it possible to build with e.g.
-D_FILE_OFFSET_BITS=64 (hsc2hs doesn't handle the conditional tricks in
<sys/mman.h> very well).

Fixes haskell-unordered-containers#95.
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/

#include <sys/mman.h>
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

IANAL, but I seriously doubt such a trivial wrapper is even (c)-able at all :-)

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Agreed. There's nothing here to copyright.

Copy link

@treeowl treeowl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It would be nice to get this (or something like it) merged, and re-enable the tests on the relevant platform(s).

@hvr hvr closed this in 015cecf May 5, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

ERROR: mmap: invalid argument (Invalid argument)
3 participants